﻿<%@ Page Language="C#" MasterPageFile="~/User/MasterPage.master" AutoEventWireup="true" CodeFile="Chitietsanpham.aspx.cs" Inherits="User_Chitietsanpham" Title="Untitled Page" %>

<%@ Register Assembly="ASPnetPagerV2_8" Namespace="ASPnetControls" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="margin" style="min-height:2500px">
    <div id="content">
    <div class="product-box cf::after">
        <div id="deal-intro" >
            <h1 style="padding-bottom:10px;">
                <a href="trangchu.aspx">Deal hôm nay: </a>
                <asp:Literal ID="lit_tensp" runat="server"></asp:Literal>
            </h1>
            <div class="main">
                <div class="deal-buy">
                    <%--<div class="deal-price-tag"></div>--%>
                    <div class="deal-price">
                     <asp:Literal ID="lit_giaban" runat="server"></asp:Literal>
                        <br />
                        VNĐ
                    </div>
                    <div class="de_mua">
                        <asp:LinkButton ID="lbt_mua" runat="server" OnClick="lbt_mua_Click"><img alt="" src="images/button-deal-buy.png" /></asp:LinkButton>
                    </div>
                    
                </div>
                <table class="deal-discount">
                    <tbody>
                        <tr>
                            <td colspan="2" align="center" style=" padding-top: 15px;padding-bottom: 15px;border-bottom: #339A99 1px solid;">
                                <span style="font: bold 1.3em arial;">Giá gốc: 
                                    <asp:Literal ID="lit_giagoc" runat="server"></asp:Literal></span>
                            </td>
                        </tr>
                        <tr>
                            <td style="border-right: #339A99 1px solid;padding-top: 10px; width:50%" valign="top">
                                Giảm giá: 
                                <br />
                                <span style="font: bold 1.1em arial;" >
                                    <asp:Literal ID="lit_giamgia" runat="server"></asp:Literal>
                                </span>
                            </td>
                            <td style="padding-top: 10px; width:50%" valign="top">
                                Tiết kiệm:
                                <br />
                                <span style="font: bold 1.1em arial;">
                                    <asp:Literal ID="lit_tiekiem" runat="server"></asp:Literal>
                                </span>
                            </td>
                        </tr>
                    </tbody>
                </table>
           <script type="text/javascript" src="js/jquery.countdown.js"></script>
         <script type="text/javascript">
$(function () {
	shortly = new Date(); 
    shortly.setSeconds(shortly.getSeconds() + <%=sogiay %>); 
	$('#defaultCountdown').countdown({onExpiry: liftOff, until: shortly});
//	$('#compact').countdown({until: liftoff, compact: true, 
//    description: ''});
});
function liftOff() { 
    $.ajax({
      type: "GET",
      url: "hethan.aspx",
      data: { id: "<%=Request.QueryString["id"] %>"}
    }).done(function( ) {
        window.location = "Chitietsanpham.aspx?id=<%=Request.QueryString["id"] %>";
    });
} 
</script>     
                <div id="deal-timeleft" class="deal-box">
                    <h3>Thời gian còn lại</h3>
                    
                    <div class="defaultCountdown"></div>
                </div>
                <div id="deal-status" class="deal-box">
                    <p class="deal-buy-tip-top">
                    <strong><asp:Literal ID="lit_nguoidamua" runat="server"></asp:Literal></strong>
                    Người đã mua
                    </p>
                    <p class="deal-buy-on" style="line-height:200%">
                    <img alt="" src="images/deal-buy-succ.gif" />
                    Vẫn còn mua được
                    </p>
                </div>
            </div>
            <div class="side">
                <div id="team_images">
                    <div class="mid">
                    <div  id="wrapper">
                    <div class="slider-wrapper theme-default">
                     <div class="ribbon"></div>                        <div id="slider" class="nivoSlider">
                            <asp:Repeater ID="rphinh" runat="server" OnItemDataBound="rphinh_ItemDataBound" >
                            <ItemTemplate>
                                <asp:Image ID="img" runat="server" />
                            </ItemTemplate>
                            </asp:Repeater>
                        </div>
                    </div>
                    </div>
                    </div>
                     <script type="text/javascript" src="nino_js/jquery.nivo.slider.pack.js"></script>
        <script type="text/javascript">        $(window).load(function() {        $('#slider').nivoSlider();        });
    </script>
                </div>
                <div id="st">
                    <span class="st1">Điều kiện</span>
                    <br />
                    <div style="padding-left:10px; text-align:justify">
                        <asp:Literal ID="lit_dieukien" runat="server"></asp:Literal>
                    </div>
                </div>
            </div>
        </div>
      </div> 
      <div style="top:20px">
        <div class="product-description" style="margin-top:20px">
            <div class="full-description">
                <h2 style="font-size: 22px;font-weight: bold;margin: 0 0 20px 0;">Thông tin chi tiết</h2>
                <div style="margin: 7px 0 30px;" class="fooo">
                    <asp:Literal ID="lit_mota" runat="server"></asp:Literal>
                </div>
                
            </div>
            <div class="product-location">
                <h2><asp:Literal ID="lit_tendn" runat="server"></asp:Literal></h2>
                <br />
                <p>
                <asp:Literal ID="lit_diachi" runat="server"></asp:Literal>
                <br />
                   <asp:Literal ID="lit_dthoai" runat="server"></asp:Literal>
                    <br />
                    <asp:Literal ID="lit_email" runat="server"></asp:Literal>
                </p>
                
            </div>
        </div>
        </div> 
    </div>
    <div class="sidebar">
                    <div class="sidebox-wrapper">
                        <h3 class="sidebox-title">
                            <span>Hỗ trợ trực tuyến</span>
                        </h3>
                         <div class="sidebox-body">
                            <div>
                                <img src="img/support.jpg" alt="" />
                            </div>
                            <div class="support">
                                <a href="#"><img src="img/online.gif" alt="" width="125px" height="25px" /></a>
                                <br />
                                <a href="#"><img src="img/online.gif" alt="" width="125px" height="25px" /></a>
                            </div>
                        </div>
                    </div>
                    <div class="sidebox-nobox ">
                        <div class="sidebox-body">
                            <p>
                            <a href="#"><img src="img/thong-bao.gif" width="230px" height="150px" alt="" /></a>
                            </p>
                        </div>
                    </div>
                   <%-- <div class="sidebox-nobox ">
                        <div class="sidebox-body">
                            <p>
                            <a href="#"><img src="img/THONG-BAO.png" alt="" /></a>
                            </p>
                        </div>
                    </div>--%>
                    <div class="sidebox-wrapper">
                         <h3 class="sidebox-title">
                            <span>Deal trong ngày</span>
                        </h3>
                         <div class="sidebox-body">
                            <div id="list_today">
                            <asp:Repeater ID="Repeater2" runat="server" OnItemDataBound="Repeater2_ItemDataBound">
                            <ItemTemplate>
                                <div class="today_product">
                                    <div class="title">
                                        <asp:HyperLink ID="hp_tensp3" runat="server"></asp:HyperLink>
                                    </div>
                                    <div class="image">
                                        <asp:HyperLink ID="hp_linksp" runat="server">
                                            <asp:Image ID="img1" runat="server" Width="203px" Height="139px" BorderWidth="1px" />
                                        </asp:HyperLink>
                                    </div>
                                    <div class="prices">
                                        <div class="oprice">
                                            Giá gốc:
                                            <span class="oprice">
                                                <asp:Literal ID="lit_giagoc2" runat="server"></asp:Literal></span>
                                        </div>
                                        <div class="sprice">
                                            <span>Còn lại: </span>
                                            <br />
                                            <span class="price">
                                                <asp:Literal ID="lit_giaban2" runat="server"></asp:Literal>
                                            </span>
                                        </div>
                                        <div class="discount">
                                            Giảm: 
                                            <br />
                                            <span class="percent">
                                                <asp:Literal ID="lit_giam2" runat="server"></asp:Literal></span>
                                        </div>
                                    </div>
                                </div>
                            </ItemTemplate>
                             </asp:Repeater>
                                
                            </div>
                         </div>
                    </div>
                </div>
</div>
<div>
    <cc1:PagerV2_8 ID="hyperlinkPager" runat="server" />
</div>
</asp:Content>

